package net.lanelife.casino.caipiao.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import net.lanelife.casino.caipiao.entity.support.UserRelationEntity;
import net.lanelife.casino.common.entity.annotation.Checked;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "TB_ACTIVITY_PARTICIPATED")
public class ActivityParticipated extends UserRelationEntity<Integer> {

	private static final long serialVersionUID = -5799923121084160024L;

	@Checked
	@Column(name = "STUFF", length = 255, nullable = false)
	private String stuff;

	@Checked
	@Enumerated(EnumType.ORDINAL)
	@Column(name = "STUFF_TYPE", nullable = false)
	private StuffType stuffType;

	@Checked
	@Column(name = "ACTIVITY_ID", nullable = false)
	private Integer activityId;
	
	public static enum StuffType {
		USERNAME, BANKCARD, SERIALNO, IP
	}

	public String getStuff() {
		return stuff;
	}

	public void setStuff(String stuff) {
		this.stuff = stuff;
	}

	public StuffType getStuffType() {
		return stuffType;
	}

	public void setStuffType(StuffType stuffType) {
		this.stuffType = stuffType;
	}

	public Integer getActivityId() {
		return activityId;
	}

	public void setActivityId(Integer activityId) {
		this.activityId = activityId;
	}

}
